package com.spring.service.example;

import com.spring.bean.example.Book;
import com.spring.bean.page.Page;
import com.spring.bean.page.PageView;
import com.spring.exception.ServiceException;
import com.spring.web.formbean.example.BookForm;

public interface BookService {

	public PageView<Book> queryForPage(Page page) throws ServiceException;

	public boolean add(BookForm formBean) throws ServiceException;

	public boolean update(BookForm formBean) throws ServiceException;

	public boolean delete(BookForm formBean)throws ServiceException;

	public Book getById(Integer id) throws ServiceException;

	public PageView<Book> searchForPage(String keyword, Page page) throws ServiceException;

}
